<!-- /* Description for file.
 * 学历等级定制
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/advanceddegreeranks
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张海杰2011年0622
 * @lastmodified  张海杰2011年0623
 */
 -->
<?php
echo $html->css ( 'style' );
echo $html->css ( 'tab' );
echo $javascript->link ( 'jquery' );
?>
<script type="text/javascript">
	function getDelStr() {
		var delArr = $("#form :checkbox:checked");
		if(delArr.length==0)
		{
			alert("请选择你要删除的项!");
			return;
		}
		var str = "";
		for(var i=0;i<delArr.length;i++) {
			var del = delArr[i].value;
			str += del;
			str += "/";
		}
		$("#delStr").val(str);
		$("#form").submit();
	}

	$(document).ready(function(){
		
		$("#btnajaxAdd").click(function(){
			$.post(
				'<?php echo ROOT_WEB_PATH; ?>/advanceddegreeranks/advanceddegreeranksAdd/',
				{
					data: {Advanceddegreerank :{name: $('#AdvanceddegreerankField').val()}}
					},
				function()
				{
					window.location.reload();
					}
					);
			});

	});
</script>
<!-- 当前位置-->
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubarcontent"><?php echo __("YourPosition");echo "："; //echo __($nowPosition)?></td>
		<td></td>
		<td></td>

	</tr>
</table>
</div>
<!-- 当前位置-->

<?php echo $form->create('Advanceddegreerank',array('action'=>'advanceddegreeranksDel','id'=>'form','type'=> 'post'));?>
<?php echo $form->hidden('delStr',array('name'=>'advanceddegreerankid','id'=>'delStr'));?>
<div class="tabflex">
	<fieldset><legend><?php __('Advanceddegreeranks');?></legend>
		<table width="98%" cellspacing="0" cellpadding="0" border="0" style="text-align:left">
			<tr>
				<td width="20%">&nbsp;</td>
				<td width="120px"><?php __('Advanceddegreeranks keyword');?>:</td>
				<td colspan="2"><?php echo $form->text('Field',array('class' => 'TextBoxL txtOut')); ?></td>
				<td width="20%">&nbsp;</td>
			</tr>
<!--			<tr>
				<td width="20%">&nbsp;</td>
  				<td width="120px"><?php __('Advanceddegreeranks rank');?>:</td>
				<td>
				<?php echo  $form->input('rank',
							array(
							'options' => array(                                 
								'0'=>'其他',             
								'1'=>'初中',            
								'2'=>'中专',
								'3'=>'高中',             
								'4'=>'大专',            
								'5'=>'本科',
								'6'=>'硕士',             
								'7'=>'博士',            
								'8'=>'博士后',
							),  
							'label'=>false,'div'=>false,'class'=>'TextBoxE1'));	 ?></td>
				<td width="120px"><?php __('Advanceddegreeranks lang');?>:</td>
				<td>
				<?php echo  $form->input('rank',
							array(
							'options' => array(                                 
								'0'=>'中文',             
								'1'=>'En',            
								'2'=>'日文',
								'3'=>'德文',             
							),  
							'label'=>false,'div'=>false,'class'=>'TextBoxE1'));	 ?></td>

			</tr>
-->
			<tr>
				<td >
					<table width="98%" cellspacing="0" cellpadding="0" border="0" style="text-align:left">
					<tr>
					<td width="40px"><a><?php echo $html->image('delete.gif', array('alt' =>  __('Delete', true),'border'=>'0','onclick'=>'getDelStr()'));?></a>
				<!-- 字段  删除 --></td>
					<td width="40px"><a><?php echo $html->image('add.gif', array('alt' =>  __('Add', true),'border'=>'0','id'=>'btnajaxAdd'));?> </a>
				<!-- 字段  添加 --></td>
				<td></td>
					</tr>
					</table>
				</td>
				
							
				
				<td>&nbsp;</td>
				<td>&nbsp;</td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</fieldset>
	
</div>
<div id="nav1" width="100%">
<table width="100%" cellpadding="0" cellspacing="0" class="tab1">
	<tr>
		<th width="70px"><?php echo __('Selected');?></th>
		<th ><?php echo __('Keyword');?></th>
<!--	<th width="70px"><?php echo __('Advanceddegreeranks lang');?></th>   -->
		
	</tr>
	<!-- Here's where we loop through our $Notes array, printing out post info --> 
	
	<?php 
	foreach ($toplist as $advanceddegreeranks): 
	?>
		<tr class=normal onmouseover='this.className= "over " '
			onmouseup='this.className= "over " '
			onmouseout='this.className= "normal " '>
			<td>
<!-- 批量删除选择 -->				
				<?php echo $form->checkbox($advanceddegreeranks['Advanceddegreerank']['id'], array('value' => $advanceddegreeranks['Advanceddegreerank']['id']));?>
			</td>
			<td><?php echo $advanceddegreeranks['Advanceddegreerank']['name']; ?></td>
			
		</tr> 
	<?php endforeach; ?>
</table>
</div>


<?php echo $form->end();?>